home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 131 / XENIATGM131.iso / Goodies / I-WAR 2 Egde of Chaos - New SDK / IW2-EOC_Pog_Scripting_SDK.exe / include / iScore.h < prev    next >
C/C++ Source or Header  |  2002-01-14  |  3KB  |  132 lines

  1. //
  2. // (c) 1999 Particle Systems Ltd. All Rights Reserved
  3. //
  4. // iScore.h
  5. //
  6. // Package for handling scoring.
  7. //
  8. // Revision control information:
  9. //
  10. // $Header: /iwar2/packages/iScore.h 5     30/03/01 14:54 Tim $
  11. //
  12.  
  13. // Dependencies ///////////////////////////////////////////////////////////////
  14.  
  15. #include "Flux.h"
  16.  
  17. #ifdef FLUX_COMPILE
  18.  
  19. FLUX_DECLARE_EXTENSION(iScore);
  20.  
  21. #ifdef FLUX_LIB
  22. #if _MSC_VER >= 1000
  23. #pragma comment( lib, "iscore" )
  24. #endif // _MSC_VER >= 1000
  25. #endif // FLUX_LIB
  26. #else
  27.  
  28. uses String;
  29.  
  30. // Type definitions ///////////////////////////////////////////////////////////
  31.  
  32. // Function prototypes ////////////////////////////////////////////////////////
  33.  
  34. //
  35. // Enable stat logging
  36. //
  37. prototype iScore.EnableLogging();
  38.  
  39. //
  40. // Disable stat logging
  41. //
  42. prototype iScore.DisableLogging();
  43.  
  44. //
  45. // iScore.AddKill
  46. //
  47. // Credits us with a kill of the given vessel
  48. //
  49. prototype iScore.AddKill( hship ship, hisim vessel );
  50.  
  51. //
  52. // Piracy
  53. //
  54.  
  55. //
  56. // iScore.AddPiracy
  57. //
  58. // Adds the given cargo type in the given quantity to the current
  59. // score rating.  This will compute the value of the goods automatically.
  60. //
  61. prototype iScore.AddPiracy( int cargo_type, int quantity );
  62.  
  63. //
  64. // iScore.PodPiracyValue
  65. //
  66. // Returns the overall value (current flight and aggregate) of pirated pods.
  67. //
  68. prototype int iScore.PodPiracyValue();
  69.  
  70. //
  71. // iScore.PodPiracyCount
  72. //
  73. // Returns the overall number of pods pirated (current flight and aggregate)
  74. //
  75. prototype int iScore.PodPiracyCount();
  76.  
  77. //
  78. // Scoring
  79. //
  80.  
  81. //
  82. // iScore.Total
  83. //
  84. // Returns the total score obtained (current flight and aggregate0
  85. //
  86. prototype int iScore.Total();
  87.  
  88. //
  89. // iScore.SetRestartPoint
  90. //
  91. // Record the 'since base' scores 
  92. //
  93. prototype iScore.SetRestartPoint();
  94.  
  95. //
  96. // iScore.GotoRestartPoint
  97. //
  98. // Reset the 'since base' scores to those recorded at the restart point
  99. //
  100. prototype iScore.GotoRestartPoint();
  101.  
  102. //
  103. // Setup
  104. //
  105.  
  106. //
  107. // iScore.SetKillValue
  108. //
  109. // Sets the score given for killing the given ship type.  This must be a valid
  110. // member of the valued ship types.
  111. //
  112. prototype iScore.SetKillValue( string ship_type, int value );
  113.  
  114. //
  115. // iScore.AddSkillRating
  116. //
  117. // Sets the title for the given minimum score.
  118. //
  119. prototype iScore.AddSkillRating( int value, string title );
  120.  
  121. //
  122. // iScore.HTMLisedStats
  123. //
  124. // Get a HTMLise version of the statistics
  125. //
  126. prototype string iScore.HTMLisedStats();
  127.  
  128. #endif // FLUX_COMPILE
  129.  
  130. // EOF ////////////////////////////////////////////////////////////////////////
  131.  
  132.